package com.kgc.scd.service;

import com.kgc.scd.util.PageSupport;
import com.kgc.scd.vo.NideshopCollectVO;

import java.util.List;

/**
 * Created On : 2022/11/14.
 * <p>
 * Author : yantao
 * <p>
 * Description: 收藏中心
 */
public interface CollectService {
    /**
     * @author : yantao
     * @date   : 2022/11/14
     * @param  : [pageNo, pageSize]
     * @return : java.util.List<com.kgc.scd.vo.NideshopCollectVO>
     * @description : 查询所有收藏
     */
    PageSupport<NideshopCollectVO> selectCollectAll(Integer pageNo, Integer pageSize,String name,String userId);

    /**
     * @author : yantao
     * @date   : 2022/11/15
     * @param  : [userId, goodsId]
     * @return : boolean
     * @description : 查询收藏情况
     */
    boolean selectIsCollect(String userId,String goodsId);


    /**
     * @author : yantao
     * @date   : 2022/11/15
     * @param  : [userId, goodsId]
     * @return : boolean
     * @description : 删除收藏byuserId
     */
    boolean delectCollectByUserId(String userId,String goodsId);

    /**
     * @author : yantao
     * @date   : 2022/11/15
     * @param  : [userId, goodsId]
     * @return : boolean
     * @description : 添加收藏
     */
    boolean insertCollect(String userId,String goodsId);

}
